<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditHistoricoSalarioTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditHistoricoSalarioLabel_idSalario}" for="idSalario" />
                    <h:inputText id="idSalario" value="#{historicoSalarioController.selected.idSalario}" title="#{bundle.EditHistoricoSalarioTitle_idSalario}" required="true" requiredMessage="#{bundle.EditHistoricoSalarioRequiredMessage_idSalario}"/>
                    <h:outputLabel value="#{bundle.EditHistoricoSalarioLabel_valor}" for="valor" />
                    <h:inputText id="valor" value="#{historicoSalarioController.selected.valor}" title="#{bundle.EditHistoricoSalarioTitle_valor}" required="true" requiredMessage="#{bundle.EditHistoricoSalarioRequiredMessage_valor}"/>
                    <h:outputLabel value="#{bundle.EditHistoricoSalarioLabel_detalhe}" for="detalhe" />
                    <h:inputText id="detalhe" value="#{historicoSalarioController.selected.detalhe}" title="#{bundle.EditHistoricoSalarioTitle_detalhe}" required="true" requiredMessage="#{bundle.EditHistoricoSalarioRequiredMessage_detalhe}"/>
                    <h:outputLabel value="#{bundle.EditHistoricoSalarioLabel_fkContrato}" for="fkContrato" />
                    <h:selectOneMenu id="fkContrato" value="#{historicoSalarioController.selected.fkContrato}" title="#{bundle.EditHistoricoSalarioTitle_fkContrato}" required="true" requiredMessage="#{bundle.EditHistoricoSalarioRequiredMessage_fkContrato}">
                        <f:selectItems value="#{contratoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditHistoricoSalarioLabel_data}" for="data" />
                    <h:inputText id="data" value="#{historicoSalarioController.selected.data}" title="#{bundle.EditHistoricoSalarioTitle_data}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                </h:panelGrid>
                <h:commandLink action="#{historicoSalarioController.update}" value="#{bundle.EditHistoricoSalarioSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditHistoricoSalarioViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{historicoSalarioController.prepareList}" value="#{bundle.EditHistoricoSalarioShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditHistoricoSalarioIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
